package lab04.test03;

/**
 * Created by dell on 2017/12/20.
 */
public class myThread implements Runnable{

    int count=1,number;

    public myThread(int num) {
        number=num;
        System.out.println("线程："+number);
    }

    public myThread(myThread myThread) {
    }

    @Override
    public void run() {
        while (true){
            System.out.println("线程"+number+"；字母"+count);
            if (++count==6)return;
        }

    }

    public void start() {
    }
    public static void main(String[] args) {
    }
}
